package cn.pupil.design;

/**
 * @Description: 学生
 * @Author: pupil
 * @Date: 2024/06/24 下午 1:14
 */
public class Student {

    private String name;    // 学生姓名
    private int rank;       // 考试排名（总排名）
    private double score;   // 考试分数（总分）

    public Student() {
    }

    public Student(String name, int rank, double score) {
        this.name = name;
        this.rank = rank;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
